<?php echo $this->Form->create("Product"); ?>
<?php echo $this->Form->input('Product.nombre', array('label' => 'Producto')); ?>
<?php echo $this->Form->input('Product.tipo', array('label' => 'Tipo de producto', 'options' => array('empty' => 'Seleccione un tipo', 'Insumo' => 'Insumo', 'Material vegetal' => 'Material vegetal', 'Maquinaria' => 'Maquinaria', 'Mano de obra' => 'Mano de obra'))); ?>
<?php echo $this->Form->input('Product.proveedor', array('label' => 'Nombre proveedor')); ?>
<?php echo $this->Form->input('Product.telefono_proveedor', array('label' => 'Teléfono proveedor')); ?>
<?php echo $this->Form->input('Product.unidad', array('label' => 'Unidad', 'options' => array('empty' => 'Seleccione una unidad', 'kg' => 'kg', 'mts' => 'mts', 'unidad' => 'unidad', 'horas' => 'horas', 'jornales' => 'jornales'))); ?>
<?php echo $this->Form->input('Product.cantidad', array('label' => 'Cantidad')); ?>
<?php echo $this->Form->input('Product.valor_total', array('label' => 'Valor total')); ?>
<?php echo $this->Form->hidden('Product.purchasing_committee_id'); ?>
<?php echo $this->Form->hidden('Product.id'); ?>
<?php
echo $ajax->submit('Guardar', array('url' => array('controller' => 'Products', 'action' => 'edit', $this->data['Product']['purchasing_committee_id']), 'update' => 'content', 'complete' => 'cargar()', 'indicator' => 'loading'));
echo $this->Form->end();
?>
<br>
<br>
<?php echo $ajax->link($html->image('regresar.gif', array('width' => '30', 'heigth' => '30', 'alt' => 'Regresar', 'title' => 'regresar')), array('controller' => 'Products', 'action' => 'index', $this->data['Product']['purchasing_committee_id']), array('update' => 'content', 'indicator' => 'loading', 'escape' => false)); ?>